package com.hn.springframework.beans.config;

/**
 *  封装 bean 的配置
 */
public class HNBeanDefinition {
    // 实际 Class 名称
    private String beanClassName;
    // 是否延迟加载，容器启动 lazyInit=false 需要初始化
    private boolean lazyInit = false;
    // 别名，根据 factoryBeanName 查询 bean
    private String factoryBeanName;
    // 是否是单例
    private boolean isSingleton = true;

    public String getBeanClassName() {
        return beanClassName;
    }

    public void setBeanClassName(String beanClassName) {
        this.beanClassName = beanClassName;
    }

    public boolean isLazyInit() {
        return lazyInit;
    }

    public void setLazyInit(boolean lazyInit) {
        this.lazyInit = lazyInit;
    }

    public String getFactoryBeanName() {
        return factoryBeanName;
    }

    public void setFactoryBeanName(String factoryBeanName) {
        this.factoryBeanName = factoryBeanName;
    }
}
